using System.Drawing;
using Moebius.Components;

namespace Overload
{
    public class Unit : Entity
    {
        private Point worldLocation;
        private bool hasBeenPlaced;

        public Unit(Moebius.Components.World manager) : base(manager)
        {
        }

        public Point WorldLocation
        {
            get { return worldLocation; }
            set
            {
                worldLocation = value;
                Position = (World as World).Terrain.CalculateTileScreenPosition(worldLocation).Location;
            }
        }

        public bool HasBeenPlaced
        {
            get { return hasBeenPlaced; }
            set { hasBeenPlaced = value; }
        }
    }
}